<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>产品分类</title>
<t:base type="jquery,easyui,tools"></t:base>
<script type="text/javascript">
		
	$(function() {
		$('#cc').combotree({
			url : 'pTypeController.do?getComboTree',
			panelHeight:'auto',
			onClick: function(node){
				$("#parentId").val(node.id);
			}
		});
		
	});
</script>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:formvalid formid="formobj" layout="div" dialog="true" refresh="true" action="pTypeController.do?savePtype">
	<input name="id" type="hidden" value="${ptype.id}">
	<fieldset class="step">
        <div class="form">
            <label class="Validform_label"> 产品分类名称: </label>
            <input name="name" class="inputxt" value="${ptype.name}" datatype="s2-15">
            <span class="Validform_checktip"></span>
        </div>
        <div class="form" >
            <label class="Validform_label"> 父分类: </label>
            <input id="cc"
               
               value="${ptype.parentId.id}">
            <input id="parentId" name="parentId.id" style="display: none;" value="${ptype.parentId.id}">
        </div>
        <div class="form">
            <label class="Validform_label"> 产品分类描述: </label>
            <input name="description" class="inputxt" value="${ptype.description}" >
            <span class="Validform_checktip"></span>
        </div>
	</fieldset>
</t:formvalid>
</body>
</html>
